package com.mt.feign;

import com.mt.constants.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Wang
 * @Description
 * @date 2021/1/8-0:21
 */

@Component
@FeignClient(value = "mt-order")
public interface OrderApiProvider {
    @GetMapping("/order/check")
    Result checkOrdersStatus(@RequestParam("orderId") String orderId);

    @GetMapping("/order/confirmPay")
    Result confirmPayOrder(@RequestParam("orderId") String orderId);

    @GetMapping("/order/sold")
    Result getSoldSeatIdList(@RequestParam("scheduleId")Integer scheduleId);
}
